{if isset($team->bugSets)}
{foreach $team->bugSets as $bugs}
{/foreach}
{foreach $team->bugSets as $bugs}
{/foreach}
{/if}